package com.manage.pojo.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 申报记录对象 cm_apply_record
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Data
@TableName("cm_apply_record")
public class CmApplyRecord
{
    private static final long serialVersionUID = 1L;

    /** 申报id */
    @TableId
    private Long id;

    /** 外部唯一id */
    private String publicId;

    /** 申报类型：0结算、1结案 */
    private Long applyType;

    /** 案件数量 */
    private Long caseNum;

    /** 申报金额 */
    private BigDecimal applyAmount;

    /**申报备注*/
    private String remark;

    /** 审核状态：0待审核、1未通过、2已通过 */
    private Long auditState;

    /** 申报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;

    /**创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**更新时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("applyType", getApplyType())
            .append("caseNum", getCaseNum())
            .append("applyAmount", getApplyAmount())
            .append("remark", getRemark())
            .append("auditState", getAuditState())
            .append("applyTime", getApplyTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
